<?php

namespace App\Admin\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * @todo: Refactor this class by using something like MenuBuilder Helper.
 */
class Source extends Model
{
    protected $table = 'admin_house_source';

    protected $guarded = [];

    protected $primaryKey = 'id';

    public static function getAll()
    {
        $result = Source::get();
        $result = json_decode(json_encode($result), true);
        return $result;
    }

}
